import { } from "react";
import { useSelector } from "react-redux";

const Index = () => {
    const { userInfo } = useSelector((state) => state.UserSlice);
    console.log(userInfo.avatar);

    return (
        <div>
            <img src={userInfo.avatar} alt="" />
            <p>用户名：{userInfo.username}</p>
            <p>昵称：{userInfo.nickname}</p>
        </div>
    );
};

export default Index;
